﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelFormatName.aspx.cs" Inherits="CardLogistics.Web.MainPage.SelectPage.FormatName" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>版面信息</title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/valReq.js" type="text/javascript"></script>
</head>
<body>
    <form runat="server" id="f2">
    <div class="rightinfo">
        <asp:Repeater ID="rptList" runat="Server">
            <HeaderTemplate>
                <table class="tablelist">
                    <thead>
                        <tr>
                            <th>
                                选择
                            </th>
                            <th>
                                缩略图
                            </th>
                            <th>
                                版面名称
                            </th>
                            <th>
                                印刷方式
                            </th>
                             <th>
                                状态
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <a href="#" onclick="ReturnSelData('<%# Eval("FORMATID")%>','<%# Eval("FORMATNAME")%>');" style="color:Blue;">选择</a>
                    </td>
                    <td align="center" height="60">
                        <img src='../Basic/FormatInfo/Upload/<%# Eval("ATTURL")%>'class="imgtd" />
                    </td>
                    <td>
                        <%# Eval("FORMATNAME")%>
                    </td>
                    <td >
                        <%# Eval("FORMATMODE")%>
                    </td>
                    <td>
                        <%# Eval("STATUS").ToString() == "0" ? "启用" : "<span style='color:red;'>禁用</span>"%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody></table>
            </FooterTemplate>
        </asp:Repeater>
        <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
            runat="server" Width="100%" AlwaysShow="True" FirstPageText="首页" LastPageText="尾页"
            NextPageText="下一页" PageSize="10" PrevPageText="上一页" ShowCustomInfoSection="left"
            ShowInputBox="Never" CustomInfoTextAlign="Left" LayoutType="Table" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
        <asp:HiddenField ID="hdfDelete" runat="server" />
    </div>
    <script type="text/javascript">
        $('.tablelist tbody tr:odd').addClass('odd');
        function ReturnSelData(id, PConNo) {
            //返回：[0]版面Id [1]版面名称
            document.getElementById("hf_FormatId").value = id; //版面Id
            document.getElementById("FormatName").value = PConNo; //版面名称
            $.tipsWindow.removeBox();
        }
    </script>
    </form>
</body>
</html>

